package top.yonyong.mynacos.configcenter.pojo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @Describtion request dto
 * @Author yonyong
 * @Date 2020/7/6 10:40
 * @Version 1.0.0
 **/
@Data
public class ConfigBean {
    @NotBlank(message = "dataId must not be null")
    @Size(max = 20, min = 1, message = "length of dataId should be between 1 - 20")
    private String dataId;

    private String content;

    @NotBlank(message = "group must not be null")
    @Size(max = 20, min = 1, message = "length of group should be between 1 - 20")
    private String group;
}
